use rand::Rng;
use std::io;
fn main() {
    let num = rand::thread_rng().gen_range(1..=100);
    println!("You Secert Number is {num}");
    loop {
        let mut guess = String::new();
        io::stdin().read_line(&mut guess).expect("readline error");
        println!("You Input Is {guess}");
        let guess: u32 = guess.trim().parse().expect("input error");
    
        if guess == num  {
            println!("Success");
            break;
        }
        if guess < num {
            println!("Small");
        }
    
        if guess > num {
            println!("Large");
        }
    }
}
